package com.zrong.project.pagination;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 12-7-2
 * Time: 下午3:23
 * To change this template use File | Settings | File Templates.
 */
public class CommonPageResult<T> implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    private int total = 0;
    private List<T> list = new ArrayList<T>(0);

    public List<T> getList() {
        return list;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public void addList(List<T> list) {
        this.list.addAll(list);
    }

    public void add(T object) {
        this.list.add(object);
    }
}
